const MainRoutes = [
  {
    path:'/home',
    alias:'/',
    name:'Home',
    component: ()=> import('../views/Home.vue')
  },
  {
    path:'/menu',
    name:'Menu',
    component: ()=> import('../views/Menu')
  },
  {
    path:'/shopbag',
    name:'Shopbag',
    component: ()=> import('../views/Shopbag')
  },
  {
    path:'/myself',
    name:'Myself',
    component: ()=> import('../views/Myself')
  },
]

export const routes = [
    {
      path: '/',
      name: 'Main',
      component: ()=> import('../views/Main'),
      children:MainRoutes
    },
    {
      path: '/login',
      name: 'Login',
      component: ()=> import('../views/Login')
    },
    {
      path: '/details',
      name: 'Details',
      component: ()=> import('../views/Details')
    },
    {
      path: '/pay',
      name: 'Pay',
      component: ()=> import('../views/Pay')
    },
    {
      path: '/addressList',
      name: 'AddressList',
      component: ()=> import('../views/AddressList')
    },
    {
      path: '/address',
      name: 'Address',
      component: ()=> import('../views/Address')
    },
    {
      path: '/order',
      name: 'Order',
      component: ()=> import('../views/Order')
    },
    {
      path: '/collection',
      name: 'Collection',
      component: ()=> import('../views/Collection')
    },
    {
      path: '/setUp',
      name: 'SetUp',
      component: ()=> import('../views/SetUp')
    },
    {
      path: '/personal',
      name: 'Personal',
      component: ()=> import('../views/Personal')
    },
    {
      path: '/hot',
      name: 'Hot',
      component: ()=> import('../views/Hot')
    },
    
  ]

 